this.name        = "Reticle_target_sensitive and Galactic Hyperdrive Class 2 functions";
this.author      = "Lestradae";
this.copyright   = "Creative Commons: attribution, non-commercial, sharealike.";
this.description = "Equipment that sets the target reticle to red when on target and sets the galactic hyperdrive to all systems reachable";
this.version     = "1.0";

this.startUp = this.reset = function()
        {
        if(missionVariables.reticle == 1)
                {
                player.ship.reticleTargetSensitive = true;
                }
        }

this.playerBoughtEquipment = function(equipment)
        {
        switch(equipment)
                {
                case "EQ_COMBAT_COMP":
                        {
                        missionVariables.reticle = 1;
                        player.ship.reticleTargetSensitive = true;
                        return;
                        }

                case "EQ_GALACTIC_HYPERDRIVE_2":
                        {
                        missionVariables.galhyper = 1;
                        player.ship.galacticHyperspaceBehaviour = "BEHAVIOUR_ALL_SYSTEMS_REACHABLE";
                        this.defaultGalacticHyperspaceBehaviour = player.ship.galacticHyperspaceBehaviour;
                        return;
                        }
                }
        }